<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page contentType="text/html; charset=UTF-8"%>
<link rel="stylesheet" media="screen" href="${path}/style/lib/build_ext/classic/theme-classic/resources/theme-classic-all.css">
<script type="text/javascript" src="${path}/style/lib/build_ext/ext-all.js"></script>
<script type="text/javascript" src="${path}/style/lib/build_ext/classic/locale/locale-zh_CN.js"></script>
<script type="text/javascript">
	jcapp = {};
	//图标资源
	//http://7xidlb.com1.z0.glb.clouddn.com/icons/icon.html
	jcapp.getIcon = function(icon) {
		return "http://7xidlb.com1.z0.glb.clouddn.com/icons/" + icon;
	};
	//初始化tip插件
	jcapp.initTipPlugin = function() {
		Ext.QuickTips.init();
		Ext.Ajax.on('requestcomplete', ext_requestcomplete, this);

		function ext_requestcomplete(conn, response, options) {
			var respObj = Ext.JSON.decode(response.responseText);
			// console.log(response);
			if (respObj.tip != null && respObj.tip.msg != null) {
				Ext.Msg.alert('提示', respObj.tip.msg);
			}
		}
	};

	window.onload = function() {
		jcapp.initTipPlugin();
	};
</script>
